package happywing.client.widget.icon;

import com.google.gwt.user.client.ui.Image;

public class IconState extends Image {
	private static final String ROOTPATH="images/icon_states/";
	public static IconState create(String pngName)
	{
		IconState state=new IconState(pngName);
		state.setStyleName("state");
		return state;
	}
	
	private IconState(String pngName){
		if(!pngName.equals(""))
		{
			setUrl(ROOTPATH+pngName);
		}
	}
}
